﻿<%@ Page Language="VB" MasterPageFile="~/masterpages/MaestraRegistro.master" AutoEventWireup="false"
    CodeFile="Sanidad.aspx.vb" Inherits="Registro_Sanidad" Title="Sanidad del animal" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   <link href="../Estilos/formulario.css"rel="Stylesheet" type="text/css" />
   
    <style type="text/css">
        .style2
        {
            background-color: #3299CC;
            color: #FFFFFF;
            padding: 2px;
            font-weight: bold;
            width: 41px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="editar">
        <table width="40%" align="center">
            <tr>
                <td class="FormHeaderTD" style="font-family: Calibri, Arial; font-weight: bold;
                        font-size: 16px">
                    <center>
                        <asp:Label ID="lblAnimal" runat="server" Text="T000A1900"></asp:Label></center>
                </td>
            </tr>
        </table>
       
   <div class="formulario">
            <fieldset>
                <legend>Datos de Sanidad</legend>
                <br />
                <table align="center" width="890px">
                    <tr>
                        <td class="style2">
                            Tipos :
                        </td>
                        <td class="DataTD">
                            &nbsp;                            
                            <asp:DropDownList ID="ddlTiposSanidad" runat="server" AppendDataBoundItems="True"
                                        CssClass="text" DataTextField="catnom" DataValueField="catcve" 
                                        Width="170px" TabIndex="37">
                                        <asp:ListItem></asp:ListItem>
                                    </asp:DropDownList>
                         </td>
                    </tr>
                </table>
                <table align="center" width="890px">
                    <tr>
                        <td class="FormHeaderTD">
                            Fecha:
                        </td>
                        <td class="DataTD" valign="middle">
                            &nbsp;<asp:TextBox ID="txtFechaTienta" runat="server" CssClass="text" Width="70px"
                                ValidationGroup="MKE" Enabled="False">01/01/1989</asp:TextBox>
                            <asp:MaskedEditExtender ID="txtFechaTienta_MaskedEditExtender" runat="server" AcceptNegative="Left"
                                        DisplayMoney="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" MaskType="Date"
                                        MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                                TargetControlID="txtFechaTienta">
                            </asp:MaskedEditExtender>
                            <asp:CalendarExtender ID="txtFechaTienta_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="txtFechaTienta" TodaysDateFormat="dd-MM-yyyy">
                            </asp:CalendarExtender>
                            &nbsp;
                            <asp:ImageButton ID="imgBtnCalendar" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                CausesValidation="False" />
                            
                                
                                
                                
                        </td>
                        <td class="FormHeaderTD">
                            Producto:
                        </td>
                        <td class="DataTD">
                            &nbsp;<asp:TextBox ID="tbProducto" runat="server" Width="280px" Enabled="False"></asp:TextBox>
                        </td>
                        <td class="FormHeaderTD">
                            Dosis:
                        </td>
                        <td class="DataTD">
                            &nbsp;
                            <asp:TextBox ID="tbDosis" runat="server" Width="280px" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    
                </table>
                <table align="center" width="890px">
                <tr>
                       <td class="FormHeaderTD">
                        Comentario :
                       </td>
                       <td>
                       &nbsp;
                           <asp:TextBox ID="tbComentario" runat="server" MaxLength="100" Width="778px" 
                               Enabled="False"></asp:TextBox>
                       </td>
                    </tr>
                </table>
                
                
            </fieldset>
        </div>
        <div class="formulario">
          
           <table align="center" width="350px">
                    <tr>
                        <td >
                        <asp:Button ID="btnNuevo" runat="server" CssClass="Botones" Text="Nuevo" />
                           <asp:Button ID="btnEditar" runat="server" CssClass="Botones" Text="Editar" />
                           <asp:Button ID="BtnBorrar" runat="server" CssClass="Botones" Text="Borrear" Enabled="False" />
                            <asp:Button ID="BtnSalvar" runat="server" CssClass="Botones" Text="Salvar" Enabled="False" />
                            <asp:GridView ID="GVSanidad" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="id">
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                                <Columns>
                                    <asp:CommandField ButtonType="Image" 
                                        SelectImageUrl="~/images/check14x13_blue.png" ShowSelectButton="True" />
                                    <asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" />
                                    <asp:BoundField HeaderText="Tipo" DataField="TipoSanidad" />
                                    <asp:BoundField HeaderText="Producto" DataField="Producto" />
                                    <asp:BoundField HeaderText="Dosis" DataField="Dosis" />
                                    <asp:BoundField DataField="Comentarios" HeaderText="Comentarios" />
                                    <asp:BoundField DataField="catnom" HeaderText="TipoSanidad" />
                                </Columns>
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#008A8C" ForeColor="White" />
                                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="Gainsboro" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
           
           
        </div>
        <div class="formulario">
            <fieldset>
                <table align="center" width="650px">
                    <tr>
                        <td align="center" class="FormHeader">
                            &nbsp;</td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </div>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
</asp:Content>
